
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.WorkOverTime;
import com.cmc.dao.WorkOverTimeDao;
import com.cmc.service.WorkOverTimeManager;

public class WorkOverTimeManagerImpl extends BaseManager implements WorkOverTimeManager {
    private WorkOverTimeDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setWorkOverTimeDao(WorkOverTimeDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.WorkOverTimeManager#getWorkOverTimes(com.cmc.model.WorkOverTime)
     */
    public List getWorkOverTimes(final WorkOverTime workOverTime) {
        return dao.getWorkOverTimes(workOverTime);
    }

    /**
     * @see com.cmc.service.WorkOverTimeManager#getWorkOverTime(String id)
     */
    public WorkOverTime getWorkOverTime(final String id) {
        return dao.getWorkOverTime(new Long(id));
    }

    /**
     * @see com.cmc.service.WorkOverTimeManager#saveWorkOverTime(WorkOverTime workOverTime)
     */
    public void saveWorkOverTime(WorkOverTime workOverTime) {
        dao.saveWorkOverTime(workOverTime);
    }

    /**
     * @see com.cmc.service.WorkOverTimeManager#removeWorkOverTime(String id)
     */
    public void removeWorkOverTime(final String id) {
        dao.removeWorkOverTime(new Long(id));
    }
}
